{% extends 'teacher_base.html' %}

{% block context %}
<div class="col-sm-6 col-lg-4 mb-4" style="position: absolute;right: 35%">
      <div class="card text-center">
        <div class="card-body">
          <h5 class="card-title">添加学生</h5>
          <form action="" method="post" enctype="multipart/form-data">
            {% csrf_token %}
            <div class="form-floating">
            <input type="text" class="form-control" id="floatingInput" placeholder="学号" name='student_number'>
            <label for="floatingInput">学号</label>
            </div><div class="form-floating">
            <input type="text" class="form-control" id="floatingInput" placeholder="姓名" name='student_name'>
            <label for="floatingInput">姓名</label>
            </div>
              <p>

              </p>


              {% if messages %}
        <ul style="list-style: none">
            {% for message in messages %}
                <li style="color: red">{{ message }}</li>
            {% endfor %}

        </ul>
      {% endif %}
              <button class="w-100 btn btn-lg btn-primary" type="submit">确定</button>
              </form>
        </div>
        </div>
    </div>
{% endblock %}